package com.hsogoo.study.autoconfiguration.conditional;

import org.springframework.context.annotation.Conditional;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @Author huangsaigang
 * Created @2019-10-3.
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE, ElementType.METHOD})
@Conditional(OnConditionalSystemProperty.class)
public @interface ConditionalOnSystemProperty {

    String name();

    String value();

}
